package com.qdxwx.data.service.order;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.order.Order;
import com.qdxwx.models.order.OrderExpress;
import com.qdxwx.models.user.User;

import java.util.List;

/**
 *
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface OrderExpressService {

    OrderExpress get(int id);

    OrderExpress get(String orderNo);

    int insert(OrderExpress orderExpress);

    int update(OrderExpress orderExpress);

    int delete(int id);

    List<OrderExpress> getList(OrderExpress orderExpress, PageRequest page);

    long count(OrderExpress orderExpress);

    int createExpress(Order order, User user);

    int updateCombine(long userId1, long userId2);
}
